#ifndef __MY_FLASH_H__
#define __MY_FLASH_H__

#include "n32l40x.h"

// 总共128kb的flash
#define  USER_PARAM_FLASH_ADDRESS     (0x08000000 + (120*1024))//0x00010000//0x0800EFFF // 64 KBytes

typedef struct
{
    uint32_t  bat_low_notify_flag;      // 
    uint32_t  bat_low_power_off_flag;

}SYS_FLASH_PARAM_t;

extern SYS_FLASH_PARAM_t flash_param;

void my_flash_param_write(void);
void my_flash_param_read(void);
void my_flash_data_init(void);
#endif
